#ifndef __OLED_H
#define __OLED_H 

#include "stdlib.h"	
#include "stdint.h"

#define OLED_CMD  0	//д
#define OLED_DATA 1	//д

#define OLED_ADDRESS 0x78

void OLED_ShowChinese(unsigned char x,unsigned char y,unsigned char num,unsigned char size1);
void OLED_ClearPoint(unsigned char x,unsigned char y);
void OLED_ColorTurn(unsigned char i);
void OLED_DisplayTurn(unsigned char i);
void Send_Byte(unsigned char dat);
void OLED_WR_Byte(unsigned char dat,unsigned char mode);
void OLED_DisPlay_On(void);
void OLED_DisPlay_Off(void);
void OLED_Refresh_Gram(void);
void OLED_Clear(void);
void OLED_DrawPoint(unsigned char x,unsigned char y,unsigned char t);
void OLED_ShowChar(unsigned char x,unsigned char y,unsigned char chr,unsigned char size,unsigned char mode);
void OLED_ShowString(unsigned char x,unsigned char y,const unsigned char *p,unsigned char size);
void oled_show_picture(unsigned char x, unsigned char y, unsigned char width, unsigned char height, const unsigned char *pic, unsigned char mode);
void OLED_ShowNum(unsigned char x,unsigned char y,unsigned int num,unsigned char len,unsigned char size1);
void OLED_ShowSignedNum(uint8_t Line, uint8_t Column, int32_t Number, uint8_t Length,uint8_t size);
void OLED_ShowHexNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length,uint8_t size);
void OLED_ShowBinNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length,uint8_t size);
void OLED_WR_BP(unsigned char x,unsigned char y);
void OLED_Init(void);

#endif


